package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author zhangjiashun
 */
@Mapper
@Repository
public interface AddressDao {

    /**
     * 根据userID获取收货地址
     * @param userID
     * @return
     */
    Address getAddressByUserID(Long userID);

    /**
     * 添加收货地址
     * @param address
     * @return
     */
    int saveAddress(Address address);

    /**
     * 更细收货地址
     * @param address
     * @return
     */
    int updateAddress(Address address);

}
